﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace JXT.PrimaryKey.Batman.Core.Security
{
    /// <summary>
    /// 系统Session用户
    /// </summary>
    [DataContract]
    public class SessionUser
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [DataMember]
        public int Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 用户邮件
        /// </summary>
        [DataMember]
        public string Mail { get; set; }

        /// <summary>
        /// 用户详细数据
        /// </summary>
        [DataMember]
        public UserDetail Detail { get; set; }

        /// <summary>
        /// 用户状态数据
        /// </summary>
        [DataMember]
        public UserStatus Status { get; set; }

        /// <summary>
        /// 用户授权数据集合
        /// </summary>
        [DataMember]
        public Authority[] Authorities { get; set; }
    }
}
